﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;
using com.guojin.mj.net.message.game;
using com.guojin.mj.net.message.login;


namespace com.guojin.mj.net.message.game
{
    public class CurrentWarRecordRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  42 ;

        public string gameTime { get; set; }
        public List<CurrentPlayerWarRecordRet> list;
        public List<GameUserInfoRet> gameUser;
        public int zhuangGold { get; set; }

        public void decode(Input _in)
        {
            gameTime = _in.readString();
            list = new List<CurrentPlayerWarRecordRet>();
            list = _in.readList<CurrentPlayerWarRecordRet>(_in);
            gameUser = new List<GameUserInfoRet>();
            gameUser = _in.readList<GameUserInfoRet>(_in);
            zhuangGold = _in.readInt();
        }

        public void encode(Output _out)
        {
           
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("CurrentWarRecordRet[gameTime= {0}], zhuangGold= {1}", gameTime, zhuangGold);
        }
    }
}